<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<html jwcid="@Shell" title="System Listbox Management" stylesheet="asset:main">

<head>
  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  <title>System Listbox Management</title>
  <link href="../css/main.css"  rel="stylesheet" type="text/css">
</head>

<body>

<div align="center" style="color:red;margin:2px">
    <span jwcid="@Delegator" delegate="ognl:beans.delegate.firstError">error</span>
</div>

<fieldset>
    <legend>选项</legend>
    <form jwcid="@Form" listener="listener:switchListbox" style="color:#666666;text-align:left;">
     <span jwcid="listbox@RadioGroup" selected="ognl:listboxName" validators="validators:required">
      <input id="product" type="radio" jwcid="@Radio" value="com.crm.model.LProduct" onclick="document.getElementById('Form').submit()"/> <label for="product" style="cursor:pointer;">产品</label>
      <input id="source" type="radio" jwcid="@Radio" value="com.crm.model.LCustSource" onclick="document.getElementById('Form').submit()"/> <label for="source" style="cursor:pointer;">客户来源</label>
      <input id="level" type="radio" jwcid="@Radio" value="com.crm.model.LCustLevel" onclick="document.getElementById('Form').submit()"/> <label for="level" style="cursor:pointer;">客户等级</label>
     </span>
    </form>
</fieldset>

<fieldset>

    <legend>可选列表维护</legend>

    <span jwcid="table">
        <table width="200">
            <tr class="crm_list_title" id="trElement"><span jwcid="@contrib:TableColumns" /></tr>
            <tr jwcid="rows@contrib:TableRows" class="ognl:beans.evenOdd.next">
                <td jwcid="@contrib:TableValues"/>
            </tr>
        </table>
        <table width="200">
            <tr class="crm_list_title">
                <td>
                    <span jwcid="@contrib:TablePages" pagesDisplayed="ognl:15"/>
                </td>
            </tr>
        </table>
    </span>

    <span jwcid="deleteColumnValue">
        <a href="" jwcid="deleteLink" onclick="return confirm('确定要删除吗？')" title="删除"><b>×</b></a>
    </span>

</fieldset>

<form jwcid="@Form">
    <table>
        <tr>
            <td>&nbsp;</td>
            <td align="right" nowrap>
                <span jwcid="@If" condition="ognl:addItem">
                名称：<input jwcid="listItemName"/>
                <input jwcid="@Submit" type="button" class="buttonStyle" action="listener:saveItem" value="保存" />
                </span>&nbsp;
                <span jwcid="@Else">
                <input jwcid="@Submit" type="button" class="buttonStyle" action="listener:newItem" value="新增"/>
                </span>
            </td>
        </tr>
    </table>
</form>



</body>
</html>